package com.hexacta.hrs.domain.employee.history;

import java.util.Date;

import org.vectrics.common.db.AbstractRecordObject;
import org.vectrics.location.Location;

/**
 * Condiciones laborales de entorno.
 * @author jallik
 *
 */
public class AgreementCondition extends AbstractRecordObject implements EffectiveCondition {

	private Date effectiveDate;
	private Double hoursPerDay;
	private String medicalInsurance;
	private Location location = null;

	@Override
	public Date getEffectiveDate() {
		return this.effectiveDate;
	}

	@Override
	public void setEffectiveDate(final Date effectiveDate) {
		this.effectiveDate = effectiveDate;
	}

	public Double getHoursPerDay() {
		return hoursPerDay;
	}

	public void setHoursPerDay(Double hoursPerDay) {
		this.hoursPerDay = hoursPerDay;
	}

	public String getMedicalInsurance() {
		return medicalInsurance;
	}

	public void setMedicalInsurance(String medicalInsurance) {
		this.medicalInsurance = medicalInsurance;
	}

	public Location getLocation() {
		return location;
	}

	public void setLocation(Location location) {
		this.location = location;
	}

    @Override
    public int compareTo(EffectiveCondition o) {
        return this.getEffectiveDate().compareTo(o.getEffectiveDate());
    }

}
